import request from '@/utils/request'

export function login(username, password, uuid, code) {
  const data = {
    username,
    password,
    uuid,
    code
  }
  return request({
    url: '/login',
    method: 'post',
    params: data
  })
}

export function getInfo() {
  return request({
    url: '/getInfo',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
